﻿using System;
using System.Collections.Generic;

namespace SilenthinkContract.Domain
{
    [Serializable]
    public class EmailAccount : Versionable<int>
    {
        public EmailAccountCategory Category { get; set; }
        public string Email { get; set; }
        public string DisplayName { get; set; }
        public string Host { get; set; }
        public int Port { get; set; }
        public string Username { get; set; }
        public string Password { get; set; }
        public bool EnableSsl { get; set; }
        public bool UseDefaultCredentials { get; set; }
        public bool Status { get; set; }

        public static IDictionary<EmailAccountCategory, string> CategoryDictionary
        {
            get
            {
                var dic = new Dictionary<EmailAccountCategory, string>();
                dic.Add(EmailAccountCategory.Register, "注册用");
                return dic;
            }
        }
    }
}
